﻿using DatabaseUserTest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WcfService.WCFModels;

namespace WcfService
{
    public class UserService
    {
        private User ConvertWCFUsertoUser(WCFUser wcfUser)
        {
            User user = new User();
            user.UserId = wcfUser.UserId;
            user.Name = wcfUser.Name;
            user.Mail = wcfUser.Mail;
            user.PhoneNo = wcfUser.PhoneNo;
            return user;
        }

        private WCFUser ConvertUserToWCFUser(User user)
        {
            WCFUser wcfUser = new WCFUser();
            wcfUser.UserId = user.UserId;
            wcfUser.Name = user.Name;
            wcfUser.Mail = user.Mail;
            wcfUser.PhoneNo = user.PhoneNo;
            return wcfUser;
        }
    }
}
